//home 模块的小仓库
import { getLStorage, getSStorage } from '@/utils/storage'
const state = {
  user: JSON.parse(getLStorage('user')),
  loginPop: '0', //1弹出
  vipPop: '0', //4弹出
  // 搜索框的值
  keyword: getSStorage('keywoed')
}
const mutations = {
  USER(state, user) {
    state.user = user
  },
  LOGINPOP(state, loginPop) {
    state.loginPop = loginPop
  },
  VIPPOP(state, vipPop) {
    state.vipPop = vipPop
  },
  KEYWORD(state, keywoed) {
    state.keyword = keywoed
  }
}
const actions = {}

const getters = {}
export default {
  state,
  mutations,
  actions,
  getters
}
